<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<p:dataTable var="productTheme" value="#{productThemeModel.list}"  filteredValue="#{productThemeModel.filteredList}" filterEvent="enter"
		rowKey="#{productTheme.id}" selection="#{productThemeModel.current}"
		selectionMode="single" paginator="true" rows="10"
		rowsPerPageTemplate="5,7,10,15,20,30,40,50"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">
		<p:ajax event="rowSelect" update=":detailForm,:headerForm"
			listener="#{productThemeController.onRowSelect}"></p:ajax>
		<p:column headerText="ID" sortBy="#{productTheme.id}">
			<h:outputText value="#{productTheme.id}" />
		</p:column>
		
		<p:column headerText="name" sortBy="#{productTheme.name}" filterBy="#{productTheme.name}" filterMatchMode="contains" >
			<h:outputText value="#{productTheme.name}" />
		</p:column>
		<p:column headerText="Chinese Name" sortBy="#{productTheme.chineseName}" filterBy="#{productTheme.chineseName}" filterMatchMode="contains">
			<h:outputText value="#{productTheme.chineseName}" />
		</p:column>
		<p:column headerText="French Name" sortBy="#{productTheme.frenchName}" filterBy="productTheme.frenchName}" filterMatchMode="contains">
			<h:outputText value="#{productTheme.frenchName}" />
		</p:column>
	</p:dataTable>
</ui:composition>
</html>